//
//  TransferRecord.h
//  RPay
//
//  Created by CharlieLiao on 2017/7/23.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import <CTNetworking/CTNetworking.h>

@interface TransferRecord : NSObject

@property (nonatomic, copy) NSString *recordName;
@property (nonatomic, copy) NSDate *dealTime;
@property (nonatomic, copy) NSString *perAmount;

@end



@interface TransferRecordList : NSObject

/// 页码
@property (nonatomic, assign) NSUInteger pageNo;
/// 总条数
@property (nonatomic, assign) NSUInteger total;
/// 总收入
@property (nonatomic, copy) NSString *amountIn;
/// 总支出
@property (nonatomic, copy) NSString *amountOut;
/// 当前数据条数
@property (nonatomic, readonly) NSUInteger count;
///
@property (nonatomic, readonly) BOOL isAll;
///
@property (nonatomic, readonly) NSArray <NSString*>*keys;
///
@property (nonatomic, readonly) NSDictionary <NSString*, NSArray<TransferRecord*>*>*content;

/// 
- (void)append:(NSArray<TransferRecord*>*)records;

@end

@interface TransferRecordReformer : NSObject  <CTAPIManagerDataReformer>

@property (nonatomic, readonly) TransferRecordList *list;

- (instancetype)initWithRecordList:(TransferRecordList*)list NS_DESIGNATED_INITIALIZER;

@end
